libxl: properly initialize device structures
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Fri, 12 Apr 2013 15:22:26 +0000 (11:22 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 17 Apr 2013 13:56:27 +0000 (14:56 +0100)
commit26c35e5cb93a7b4dcde940620eb7ac1845ed6e5a
tree7e3ffa56052f886a719371750df63a68b1f012fd
parentef496b81f0336f09968a318e7f81151dd4f5a0cc
libxl: properly initialize device structures

This avoids returning unallocated memory in the libxl_device_vtpm
structure in libxl_device_vtpm_list, and uses libxl_device_nic_init
instead of memset when initializing libxl_device_nics.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c